package org.example.HttpClient.Pojo;

import org.apache.http.NameValuePair;
import org.example.HttpClient.HttpInterface.Functional.HttpCatchFunctional;
import org.example.HttpClient.HttpInterface.Functional.HttpFinallyFunctional;
import org.example.HttpClient.HttpInterface.Functional.HttpThenFunctional;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class AxiosConfig {

    private HttpCatchFunctional CatchFunctional;
    private HttpFinallyFunctional FinallyFunctional;
    private HttpThenFunctional ThenFunctional;

    private String url;
    private String method;
    private final Map<String, String> header = new HashMap<>();
    private final Map<String, String> Parameter = new HashMap<>();
    private final List<NameValuePair> Data = new ArrayList<>();

    public HttpCatchFunctional getCatchFunctional() {
        return CatchFunctional;
    }

    public HttpFinallyFunctional getFinallyFunctional() {
        return FinallyFunctional;
    }

    public HttpThenFunctional getThenFunctional() {
        return ThenFunctional;
    }

    public String getUrl() {
        return url;
    }

    public String getMethod() {
        return method;
    }

    public Map<String, String> getHeader() {
        return header;
    }

    public Map<String, String> getParameter() {
        return Parameter;
    }

    public List<NameValuePair> getData() {
        return Data;
    }


    public void setMethod(String method) {
        this.method = method;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setThenFunctional(HttpThenFunctional thenFunctional) {
        ThenFunctional = thenFunctional;
    }

    public void setFinallyFunctional(HttpFinallyFunctional finallyFunctional) {
        FinallyFunctional = finallyFunctional;
    }

    public void setCatchFunctional(HttpCatchFunctional catchFunctional) {
        CatchFunctional = catchFunctional;
    }


}
